package com.CNMedical.system.service;

import java.util.List;
import com.CNMedical.system.domain.entity.AppletQuestionOption;
import com.CNMedical.system.domain.vo.AppletQuestionOptionVO;

/**
 * 试题选项Service接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface IAppletQuestionOptionService 
{

    String whetherCorrectOption(String questionId,String optionId);

    List<AppletQuestionOption> getAllOptionsByQuestionId(String questionId);
    /**
     * 查询试题选项
     * 
     * @param id 试题选项主键
     * @return 试题选项
     */
    public AppletQuestionOption selectAppletQuestionOptionById(Long id);

    /**
     * 查询试题选项列表
     * 
     * @param appletQuestionOption 试题选项
     * @return 试题选项集合
     */
    public List<AppletQuestionOptionVO> selectAppletQuestionOptionList(AppletQuestionOption appletQuestionOption);

    /**
     * 新增试题选项
     * 
     * @param appletQuestionOption 试题选项
     * @return 结果
     */
    public int insertAppletQuestionOption(AppletQuestionOption appletQuestionOption);

    /**
     * 修改试题选项
     * 
     * @param appletQuestionOption 试题选项
     * @return 结果
     */
    public int updateAppletQuestionOption(AppletQuestionOption appletQuestionOption);

    /**
     * 批量删除试题选项
     * 
     * @param ids 需要删除的试题选项主键集合
     * @return 结果
     */
    public int deleteAppletQuestionOptionByIds(Long[] ids);

    /**
     * 删除试题选项信息
     * 
     * @param id 试题选项主键
     * @return 结果
     */
    public int deleteAppletQuestionOptionById(Long id);
}
